package com.mzkj.wanjulaile.mobile.api.modules.activeConfig.entity;

import com.mzkj.wanjulaile.mobile.api.common.entity.DataEntity;

/**
 * 分享活动图片Entity
 * @author ianly
 * @version 2017-02-10
 */
public class ActiveSharePic extends DataEntity<ActiveSharePic> {

	private static final long serialVersionUID = 1L;
	private String picUrl;		// 图片地址链接
	private Integer type;		// 1：下单后奖励图 2：分享有礼奖励图 3：分享有礼如何分享图
	private String showFlag;		// 是否显示
	private String typeText;
	
	public ActiveSharePic() {
		super();
	}

	public ActiveSharePic(String id){
		super(id);
	}

	public String getPicUrl() {
		return picUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getShowFlag() {
		return showFlag;
	}

	public void setShowFlag(String showFlag) {
		this.showFlag = showFlag;
	}

	public String getTypeText() {
		String typeText ="";
		if (type != null){
			if (type == 1){
				typeText = "下单后奖励图";
			}
			if (type == 2){
				typeText = "分享有礼奖励图";
			}
			if (type == 3){
				typeText = "分享有礼如何分享图";
			}
		}
		return typeText;
	}

}